﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AreaList.aspx.cs" Inherits="ZLCMS.Web.SystemManage.Basics.Location.AreaList" %>

<%@ Import Namespace ="ZLCMS.Business.Util" %>

<%@ Register src="/SystemManage/Control/CascadeComboxControl.ascx" tagname="CascadeComboxControl" tagprefix="uc1" %>
<%=_framePage.GetPagerFormHtml(Request.RawUrl)%>

<form id="pageForm" method="post" class="pageForm" runat="Server">
<%=_framePage.TabInfoHtml()%>

<div class="pageHeader">
	<div class="searchBar">
		<ul class="searchContent">
			<li>
			    <span>&nbsp;</span>
                  <uc1:CascadeComboxControl ID="ProvinceCascadeCombox1" runat="server" EmptyText="--省--"  ConditionName="province" ctltype="dropdownlist"
                    Category="Province" DataSourceUrl='/Interface/ajax/CommandService.aspx?key=LoadAddress&param={"Category":"Province","KeyValuePairString":"{value}"}' 
                    ReferenceCategory="City" Group="addr1" />
			</li>
            <li>
			    <span>&nbsp;</span>
                 <uc1:CascadeComboxControl ID="CityCascadeCombox1" runat="server" EmptyText="--市--"  ConditionName="city" ctltype="dropdownlist"
                    Category="City" DataSourceUrl='/Interface/ajax/CommandService.aspx?key=LoadAddress&param={"Category":"City","KeyValuePairString":"{value}"}' 
                     Group="addr1"    />
			</li>
		</ul>
	    <div class="subBar">
			<ul>
			<li>
			    <a class="button" target="dialog" mask="true" href="/SystemManage/Basics/Menu/MenuHelpInfo.aspx?id=<%= _framePage.NavTabId %>"><span>&nbsp;帮&nbsp;助&nbsp;</span></a>
			</li>
			<li>
			    <a class="buttonActive" href="<%= Request.Path %>" onclick="ZLAN_DWZ_EX.query(this);" 
			    target="navTab" rel="<%= _framePage.NavTabId %>" title="<%= _framePage.NavTabTitle %>"><span>&nbsp;查&nbsp;询&nbsp;</span></a>
			</li>
			</ul>
	    </div>
	</div>
</div>

<div class="pageContent">   
   	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add"  href="/SystemManage/Basics/Location/AreaDetail.aspx?tabid=<%= _framePage.NavTabId%>"
			       target="navTab" rel="areadetail" title="地区明细"><span>添加</span></a></li>
            <li><a class="delete" href="/SystemManage/Basics/Location/Delete.aspx?type=area&ajax=dels" target="selectedTodo" title="请确定要删除"><span>删除勾选</span></a></li>
		</ul>
	</div>
	<div class="tableList" layoutH="116">
	<table class="list" targetType="navTab" asc="asc" desc="desc">
	    <thead>
			<tr>
                <th width="5px"><input type="checkbox" group="ids" class="checkboxCtrl"/></th>
				<th width="100px">编码</th>
				<th width="100px">名称</th>
				<th width="100px">城市</th>
				<th width="100px">配送说明</th>
				<th width="100px">操作</th>
			</tr>
		</thead>
		<tbody>
            <asp:repeater runat="server" id="rpt_city">
                <ItemTemplate>
			    <tr target="uid" rel=<%# ((IDictionary)Container.DataItem)["Id"] %>>
                    <td><input name="ids" value="<%# ((IDictionary)Container.DataItem)["Id"] %>" type="checkbox"/></td>
				    <td><%# ((IDictionary)Container.DataItem)["Code"]%></td>
				    <td><%# ((IDictionary)Container.DataItem)["Name"]%></td>
				    <td><%# ((IDictionary)Container.DataItem)["City"]%></td>
				    <td><%# ((IDictionary)Container.DataItem)["Description"]%></td>
				   <td>
				        <a href="/SystemManage/Basics/Location/Areadetail.aspx?uid=<%# ((IDictionary)Container.DataItem)["Id"] %>&tabid=<%= _framePage.NavTabId%>" onclick="ZLAN_DWZ_EX.open(this);" target="navTab" rel="areadetail" title="城市信息">编辑</a>&nbsp;&nbsp;
				        <a href="/SystemManage/Basics/Location/Delete.aspx?type=area&uid=<%# ((IDictionary)Container.DataItem)["Id"] %>" onclick="ZLAN_DWZ_EX.open(this);" target="ajaxTodo" title="请确定要删除">删除</a>
				    </td>
			    </tr>
                </ItemTemplate>
            </asp:repeater>
		</tbody>
	</table>

	</div>

<%= _framePage.GetPagerContentHtml() %>

</div>
</form>

